<?php
class AdminModel extends Model {
	public function changePassword($adminId,$password){
		if(!empty($password)){
			return $adminId > 0 ? $this->where(array('id'=>$adminId))->setField('password', $password) : false;
		}
		return false;
	}
}